package ooday05;

public class StaticDemo {
    public static void main(String[] args) {
        StaticVar s1 = new StaticVar();
        s1.show();
        StaticVar s2 = new StaticVar();
        s2.show();
        StaticVar s3 = new StaticVar();
        s3.show();
        System.out.println(StaticVar.b);

        StaticBlock o4=new StaticBlock();
        StaticBlock o5=new StaticBlock();
        StaticBlock o6=new StaticBlock();//加载类时自动执行静态块（只执行了一次）

        StaticMethod.test();
    }
}
